package com.example.AIstudy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.AIstudy.DTO.RedoRecordDTO;
import com.example.AIstudy.domain.CuoTiJi;
import com.example.AIstudy.domain.RedoRecord;
import com.example.AIstudy.exception.AIstudyException;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

public interface RedoRecordService extends IService<RedoRecord> {
    public List<RedoRecordDTO> queryLastTimeRedoDetail() throws AIstudyException;

    //分页获取错题巩固的记录
    public IPage<RedoRecordDTO> queryRedoRecord(Map<String,Object> condition, Integer pageNum, Integer pageSize);

    //获取错题巩固的详细信息
    public RedoRecord getRecordDetail(Integer recordID) throws AIstudyException;

    //插入一条错题记录
    RedoRecord insertRedoRecord(RedoRecord record)throws AIstudyException;

    RedoRecord insertRedoRecords(List<RedoRecord> records)throws AIstudyException;

    public void updateRecordUserComment(RedoRecord record) throws AIstudyException;

    public CuoTiJi insertRedoRecordsGetCuotiJson(List<RedoRecord> records)throws AIstudyException;

    public CuoTiJi insertRedoRecordGetCuotiJson(RedoRecord record)throws AIstudyException;

    public CuoTiJi getRecordDetailWithCuotiJson(Integer recordID) throws AIstudyException;

}
